Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sys_rwlock_wlock timeout event #7899

Merged
merged 1 commit into from Mar 30, 2020
Merged

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Mar 29, 2020

As long as owner LSB is set sys_rwlock_tryrlock and sys_rwlock_rlock would think the rwlock is unavailable, so clear this bit on last writer waiter so the readers can see its availabilty again.
Heck, sys_rwlock_rlock can wait forever waiting for a non-existing writer to quit in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants